package com.prs.crm.domain.person;


import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;
/**
 * 
 * @author Yanghao
 *	2012-7-3 10:54:55 人事合同
 */
@Entity
@Table(name="per_personnelcontract")
public class PersonnelContract extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	@ManyToOne
	private Dossier dossier;
	@ManyToOne
	private Contract contract;
	@ManyToOne
	private Limit limit;
	
	private String number;
	private String contractType;
	private String jingye;
	private String secrecy;
	private Date contractDate;
	private Date fullDate;
	private Date visaDate;
	private String visa;
	private String breach;
	private String others;
	@ManyToOne(fetch=FetchType.LAZY)
	@Cascade({org.hibernate.annotations.CascadeType.ALL,org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
	private Attachment attach;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Dossier getDossier() {
		return dossier;
	}
	public void setDossier(Dossier dossier) {
		this.dossier = dossier;
	}
	public Contract getContract() {
		return contract;
	}
	public void setContract(Contract contract) {
		this.contract = contract;
	}
	public Limit getLimit() {
		return limit;
	}
	public void setLimit(Limit limit) {
		this.limit = limit;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getContractType() {
		return contractType;
	}
	public void setContractType(String contractType) {
		this.contractType = contractType;
	}
	public String getJingye() {
		return jingye;
	}
	public void setJingye(String jingye) {
		this.jingye = jingye;
	}
	public String getSecrecy() {
		return secrecy;
	}
	public void setSecrecy(String secrecy) {
		this.secrecy = secrecy;
	}
	public Date getContractDate() {
		return contractDate;
	}
	public void setContractDate(Date contractDate) {
		this.contractDate = contractDate;
	}
	public Date getFullDate() {
		return fullDate;
	}
	public void setFullDate(Date fullDate) {
		this.fullDate = fullDate;
	}
	public Date getVisaDate() {
		return visaDate;
	}
	public void setVisaDate(Date visaDate) {
		this.visaDate = visaDate;
	}
	public String getVisa() {
		return visa;
	}
	public void setVisa(String visa) {
		this.visa = visa;
	}
	public String getBreach() {
		return breach;
	}
	public void setBreach(String breach) {
		this.breach = breach;
	}
	public String getOthers() {
		return others;
	}
	public void setOthers(String others) {
		this.others = others;
	}
	public Attachment getAttach() {
		return attach;
	}
	public void setAttach(Attachment attach) {
		this.attach = attach;
	}
	
}
